if(NOT TARGET simUtil)
    return()
endif()

project(EXAMPLE_OCEAN)

set(PROJECT_FILES
    Ocean.cpp
)

add_executable(example_ocean ${PROJECT_FILES})
target_link_libraries(example_ocean PRIVATE simVis simUtil)
set_target_properties(example_ocean PROPERTIES
    FOLDER "Examples"
    PROJECT_LABEL "Ocean"
)
vsi_install_target(example_ocean SDK_Examples)

# Pass a variable to compiler if the Triton support is through the NodeKit interface
if(OSGEARTH_TRITON_SUPPORT STREQUAL NODEKIT)
    target_link_libraries(example_ocean PRIVATE OSGEARTH_TRITON)
endif()
# Pass a variable to compiler if the SilverLining support is through the NodeKit interface
if(OSGEARTH_SILVERLINING_SUPPORT STREQUAL NODEKIT)
    target_link_libraries(example_ocean PRIVATE OSGEARTH_SILVERLINING)
endif()
